﻿@model  Model.SysRoleInfo
@{
    ViewBag.Title = "添加分组";
}
@using BLL;
 <script src="@Url.Content("~/Scripts/jquery.validate.min.js")" type="text/javascript"></script>
<script src="@Url.Content("~/Scripts/jquery.validate.unobtrusive.min.js")" type="text/javascript"></script>
<script src="@Url.Content("~/Scripts/JScriptCommon.js")" type="text/javascript"></script>
 @using (Html.BeginForm("Create", "SysRole"))
 {
       @Html.ValidationSummary(true, "输入数据不完整或有错误，请重新输入.")
<fieldset>
        <legend>
            <input class="submitcss" type="submit" value="保存" />
            <input class="submitcss" type="button" onclick="BackList('SysRole')" value="返回" />
        </legend>
        <div class="bigdiv">
        <table style="text-align:right">                           
        <tr>
        <td style=" width:50px; text-align:right"><div class="editor-label">
                @Html.LabelFor(model => model.Name)  
            </div></td>
        <td><div class="editor-field">
                @Html.EditorFor(model => model.Name)  
                @Html.ValidationMessageFor(model => model.Name)  
            </div></td>
        <td style=" width:80px;text-align:right"><div class="editor-label">
                        @Html.LabelFor(model => model.Code)  
            </div></td>
        <td> <div class="editor-field">
                  @Html.EditorFor(model => model.Code) 
            </div></td>
        </tr>
        <tr>
        <td> @Html.LabelFor(model => model.Status)  </td>
         <td> @Html.DropDownListFor(model => model.Status, SysParametersBLL.GetInfoListByType("menuStatus"), "请选择")</td>
          <td></td>
           <td></td>
        </tr>
        <tr>
        <td> <div class="editor-label">
                @Html.LabelFor(model => model.Description
                )  
            </div></td>
        <td colspan="3"> <div class="editor-field">
                @Html.TextAreaFor(model => model.Description)  
            </div></td>
       
        </tr>
        </table>
        </div>
    </fieldset>
 }
